```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TCP/IP协议深度解析 | 现代网络通信的核心支柱</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.8;
        }
        h1, h2, h3, h4, .serif {
            font-family: 'Noto Serif SC', serif;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .feature-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            margin-bottom: 1.5rem;
        }
        .first-letter:first-letter {
            font-size: 3.5em;
            float: left;
            line-height: 0.8;
            margin-right: 0.5rem;
            color: #2563eb;
            font-weight: 700;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold leading-tight mb-6">TCP/IP协议</h1>
                    <p class="text-xl md:text-2xl opacity-90 mb-8 max-w-lg">
                        现代网络通信的核心支柱 - 探索互联网背后的秘密通道
                    </p>
                    <div class="flex space-x-4">
                        <a href="#how-it-works" class="bg-white text-blue-800 hover:bg-gray-100 px-6 py-3 rounded-lg font-semibold transition duration-300 transform hover:scale-105">
                            工作原理 <i class="fas fa-arrow-down ml-2"></i>
                        </a>
                        <a href="#features" class="bg-transparent border-2 border-white hover:bg-white hover:text-blue-800 px-6 py-3 rounded-lg font-semibold transition duration-300 transform hover:scale-105">
                            特性优势 <i class="fas fa-star ml-2"></i>
                        </a>
                    </div>
                </div>
                <div class="md:w-1/2 flex justify-center">
                    <div class="relative w-full max-w-md">
                        <div class="absolute -top-8 -left-8 w-32 h-32 bg-blue-400 rounded-full mix-blend-multiply filter blur-xl opacity-70"></div>
                        <div class="absolute -bottom-8 -right-8 w-32 h-32 bg-indigo-400 rounded-full mix-blend-multiply filter blur-xl opacity-70"></div>
                        <div class="relative p-8 bg-white bg-opacity-10 backdrop-filter backdrop-blur-md rounded-2xl border border-white border-opacity-20 shadow-2xl">
                            <div class="mermaid">
                                graph TD
                                    A[应用层] -->|HTTP/FTP/SMTP| B(传输层)
                                    B -->|TCP/UDP| C[网络层]
                                    C -->|IP| D[网络接口层]
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- How It Works Section -->
    <section id="how-it-works" class="py-20 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4 text-gray-800">TCP/IP 协议的工作原理</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">
                    四层架构协同工作，实现数据的可靠传输和通信
                </p>
            </div>

            <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
                <!-- Layer 1 -->
                <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 card-hover">
                    <div class="p-6">
                        <div class="feature-icon bg-blue-100 text-blue-600">
                            <i class="fas fa-window-maximize text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">应用层</h3>
                        <p class="text-gray-600 mb-4">
                            提供网络服务给应用程序，处理特定应用程序协议（如HTTP、FTP、SMTP等）。
                        </p>
                        <ul class="space-y-2 text-gray-600">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>定义数据的格式和语义</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>生成适当的请求或响应</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>与用户直接交互</span>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- Layer 2 -->
                <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 card-hover">
                    <div class="p-6">
                        <div class="feature-icon bg-green-100 text-green-600">
                            <i class="fas fa-exchange-alt text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">传输层</h3>
                        <p class="text-gray-600 mb-4">
                            负责数据的可靠传输、端到端的连接、流量控制、差错校验等。
                        </p>
                        <div class="space-y-3">
                            <div class="bg-gray-50 p-3 rounded-lg">
                                <h4 class="font-semibold text-blue-600 mb-1">TCP</h4>
                                <p class="text-sm text-gray-600">面向连接，可靠传输，三次握手</p>
                            </div>
                            <div class="bg-gray-50 p-3 rounded-lg">
                                <h4 class="font-semibold text-purple-600 mb-1">UDP</h4>
                                <p class="text-sm text-gray-600">无连接，快速传输，低延迟</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Layer 3 -->
                <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 card-hover">
                    <div class="p-6">
                        <div class="feature-icon bg-purple-100 text-purple-600">
                            <i class="fas fa-globe text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">网络层</h3>
                        <p class="text-gray-600 mb-4">
                            负责数据包的寻址与路由，定义了如何通过多个网络传输数据。
                        </p>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <div class="flex justify-between items-center mb-2">
                                <span class="text-sm font-medium text-gray-500">核心协议</span>
                                <span class="text-sm font-bold text-purple-600">IP</span>
                            </div>
                            <div class="flex justify-between items-center">
                                <span class="text-sm font-medium text-gray-500">版本</span>
                                <div class="flex space-x-2">
                                    <span class="px-2 py-1 text-xs rounded bg-blue-100 text-blue-800">IPv4</span>
                                    <span class="px-2 py-1 text-xs rounded bg-green-100 text-green-800">IPv6</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Layer 4 -->
                <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 card-hover">
                    <div class="p-6">
                        <div class="feature-icon bg-yellow-100 text-yellow-600">
                            <i class="fas fa-ethernet text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">网络接口层</h3>
                        <p class="text-gray-600 mb-4">
                            将IP数据报封装成底层网络帧，管理物理设备上的数据传输。
                        </p>
                        <div class="flex flex-wrap gap-2">
                            <span class="px-3 py-1 text-sm rounded-full bg-gray-100 text-gray-800">以太网</span>
                            <span class="px-3 py-1 text-sm rounded-full bg-gray-100 text-gray-800">Wi-Fi</span>
                            <span class="px-3 py-1 text-sm rounded-full bg-gray-100 text-gray-800">光纤</span>
                            <span class="px-3 py-1 text-sm rounded-full bg-gray-100 text-gray-800">蜂窝网络</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Detailed Explanation -->
            <div class="mt-20">
                <div class="grid md:grid-cols-2 gap-10">
                    <div>
                        <h3 class="text-2xl font-bold mb-6 text-gray-800 flex items-center">
                            <i class="fas fa-project-diagram mr-3 text-blue-500"></i> TCP/IP 数据流
                        </h3>
                        <div class="bg-gray-50 p-6 rounded-xl">
                            <div class="mermaid">
                                sequenceDiagram
                                    应用层->>传输层: 应用数据
                                    传输层->>网络层: 添加TCP/UDP头部
                                    网络层->>网络接口层: 添加IP头部
                                    网络接口层->>网络: 封装为帧并发送
                                    Note right of 网络接口层: 数据通过物理网络传输
                                    网络-->>网络接口层: 接收帧
                                    网络接口层-->>网络层: 提取IP数据包
                                    网络层-->>传输层: 提取TCP/UDP段
                                    传输层-->>应用层: 交付应用数据
                            </div>
                        </div>
                    </div>
                    <div>
                        <h3 class="text-2xl font-bold mb-6 text-gray-800 flex items-center">
                            <i class="fas fa-handshake mr-3 text-green-500"></i> TCP 三次握手
                        </h3>
                        <div class="bg-gray-50 p-6 rounded-xl">
                            <div class="mermaid">
                                sequenceDiagram
                                    participant Client
                                    participant Server
                                    Client->>Server: SYN (seq=x)
                                    Server->>Client: SYN-ACK (seq=y, ack=x+1)
                                    Client->>Server: ACK (seq=x+1, ack=y+1)
                                    Note right of Client: 连接建立成功
                            </div>
                            <div class="mt-4 p-4 bg-blue-50 rounded-lg">
                                <h4 class="font-semibold text-blue-800 mb-2">为什么需要三次握手？</h4>
                                <p class="text-sm text-gray-700">
                                    1. 确认双方收发能力正常<br>
                                    2. 同步初始序列号(ISN)<br>
                                    3. 防止历史连接请求造成混乱
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section id="features" class="py-20 px-4 sm:px-6 lg:px-8 bg-gray-50">
        <div class="max-w-6xl mx-auto">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4 text-gray-800">TCP/IP 协议的特点</h2>
                <p class="text-lg text-gray-600 max-w-3xl mx-auto">
                    模块化设计、分层架构和强大的适应能力，使其成为互联网的基础
                </p>
            </div>

            <div class="grid md:grid-cols-2 gap-8">
                <div class="bg-white rounded-xl shadow-md p-8">
                    <div class="first-letter">
                        <p>TCP/IP协议栈采用模块化设计，协议分为多个层次，每一层只负责特定的功能，彼此独立。各层之间通过标准接口进行通信，这种设计提高了协议的灵活性和可扩展性。</p>
                        <p class="mt-4">TCP/IP协议栈的分层架构将网络通信的复杂性进行了抽象，每一层独立实现自己的功能，简化了开发和维护。例如，传输层可以选择TCP或UDP以适应不同的应用需求，而不需要关心网络层的具体实现。</p>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-md p-8">
                    <h3 class="text-xl font-bold mb-4 text-gray-800 flex items-center">
                        <i class="fas fa-layer-group text-blue-500 mr-2"></i> 分层架构优势
                    </h3>
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
                                <i class="fas fa-check text-blue-600"></i>
                            </div>
                            <div class="ml-4">
                                <h4 class="font-medium text-gray-800">功能解耦</h4>
                                <p class="text-sm text-gray-600 mt-1">各层独立演进，互不影响</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
                                <i class="fas fa-check text-green-600"></i>
                            </div>
                            <div class="ml-4">
                                <h4 class="font-medium text-gray-800">简化开发</h4>
                                <p class="text-sm text-gray-600 mt-1">开发者只需关注特定层次</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center">
                                <i class="fas fa-check text-purple-600"></i>
                            </div>
                            <div class="ml-4">
                                <h4 class="font-medium text-gray-800">灵活替换</h4>
                                <p class="text-sm text-gray-600 mt-1">可根据需求选择不同协议</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Feature Cards -->
            <div class="mt-12 grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg">
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-lg bg-indigo-100 text-indigo-600 flex items-center justify-center mb-4">
                            <i class="fas fa-network-wired text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">异构网络互联</h3>
                        <p class="text-gray-600">
                            TCP/IP协议栈能够在不同的物理网络之间进行互连，这意味着它可以在不同类型的网络硬件和技术之间传输数据，如光纤、Wi-Fi、以太网等。
                        </p>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg">
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-lg bg-blue-100 text-blue-600 flex items-center justify-center mb-4">
                            <i class="fas fa-shield-alt text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">端到端通信</h3>
                        <p class="text-gray-600">
                            TCP协议提供面向连接的、可靠的端到端通信，确保数据包的有序传输和完整接收。通过三次握手建立连接，通过确认机制实现可靠传输。
                        </p>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg">
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-lg bg-green-100 text-green-600 flex items-center justify-center mb-4">
                            <i class="fas fa-bolt text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">无连接传输</h3>
                        <p class="text-gray-600">
                            UDP协议提供无连接的、不可靠的传输方式，适用于那些对数据丢失不敏感但对时延敏感的应用，如音视频流、在线游戏等。
                        </p>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg">
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-lg bg-yellow-100 text-yellow-600 flex items-center justify-center mb-4">
                            <i class="fas fa-address-book text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">IP地址体系</h3>
                        <p class="text-gray-600">
                            IP协议提供了全球唯一的地址体系，确保每台连接到网络的设备都有一个唯一的地址，方便设备之间的通信和数据交换。
                        </p>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg">
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-lg bg-red-100 text-red-600 flex items-center justify-center mb-4">
                            <i class="fas fa-heartbeat text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">适应性和鲁棒性</h3>
                        <p class="text-gray-600">
                            TCP/IP协议能够适应各种不同的网络环境，并且具有较强的鲁棒性。例如，TCP协议可以动态调整发送速率以适应网络带宽的变化。
                        </p>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg">
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-lg bg-purple-100 text-purple-600 flex items-center justify-center mb-4">
                            <i class="fas fa-boxes text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-gray-800">广泛应用支持</h3>
                        <p class="text-gray-600">
                            TCP/IP协议栈支持多种应用协议，如HTTP(Web)、SMTP(电子邮件)、FTP(文件传输)等，几乎涵盖了所有互联网应用。
                        </p>
                    </div>
                </div>
            </div>

            <!-- Comparison Table -->
            <div class="mt-16 bg-white rounded-xl shadow-md overflow-hidden">
                <div class="p-6 border-b border-gray-200">
                    <h3 class="text-xl font-bold text-gray-800">TCP 与 UDP 对比</h3>
                </div>
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">特性</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-blue-600 uppercase tracking-wider">TCP</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-purple-600 uppercase tracking-wider">UDP</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800">连接方式</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">
                                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">面向连接</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">
                                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">无连接</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800">可靠性</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">
                                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">可靠传输</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">
                                    <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">不可靠传输</span>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800">流量控制</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">
                                    <i class="fas fa-check text-green-500"></i>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">
                                    <i class="fas fa-times text-red-500"></i>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800">传输速度</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">较慢</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">较快</td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800">典型应用</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">网页浏览、文件传输、电子邮件</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-600">视频流、在线游戏、DNS查询</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>

    <!-- Final Summary -->
    <section class="py-20 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-6xl mx-auto">
            <div class="bg-gradient-to-r from-blue-50 to-indigo-50 rounded-2xl p-10">
                <div class="flex flex-col md:flex-row items-center">
                    <div class="md:w-2/3">
                        <h2 class="text-3xl font-bold mb-6 text-gray-800">TCP/IP协议总结</h2>
                        <p class="text-lg text-gray-700 mb-6">
                            TCP/IP协议是一个功能强大且广泛应用的网络协议栈，它通过分层设计和模块化架构，为各种应用提供了灵活、可靠的网络通信服务。其支持异构网络的互联、端到端的可靠传输、无连接的快速传输以及丰富的应用协议，使其成为现代网络通信的核心支柱。
                        </p>
                        <div class="flex flex-wrap gap-3">
                            <span class="px-4 py-2 bg-white rounded-full shadow-sm text-sm font-medium text-blue-700">分层架构</span>
                            <span class="px-4 py-2 bg-white rounded-full shadow-sm text-sm font-medium text-indigo-700">模块化设计</span>
                            <span class="px-4 py-2 bg-white rounded-full shadow-sm text-sm font-medium text-purple-700">可靠传输</span>
                            <span class="px-4 py-2 bg-white rounded-full shadow-sm text-sm font-medium text-green-700">全球互联</span>
                        </div>
                    </div>
                    <div class="md:w-1/3 mt-10 md:mt-0 flex justify-center">
                        <div class="relative">
                            <div class="absolute -top-6 -right-6 w-32 h-32 bg-blue-200 rounded-full mix-blend-multiply filter blur-xl opacity-50"></div>
                            <div class="absolute -bottom-8 -left-6 w-32 h-32 bg-indigo-200 rounded-full mix-blend-multiply filter blur-xl opacity-50"></div>
                            <div class="relative bg-white p-6 rounded-xl shadow-lg border border-gray-100">
                                <div class="mermaid">
                                    pie
                                        title TCP/IP协议栈组成
                                        "应用层" : 25
                                        "传输层" : 25
                                        "网络层" : 25
                                        "网络接口层" : 25
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="text-center">
                <h3 class="text-xl font-bold mb-2">技术小馆</h3>
                <p class="text-gray-400 mb-4">探索技术的无限可能</p>
                <a href="http://www.yuque.com/jtostring" class="text-blue-400 hover:text-blue-300 transition duration-300 inline-block">www.yuque.com/jtostring</a>
            </div>
            <div class="mt-8 pt-8 border-t border-gray-800 text-center text-sm text-gray-500">
                &copy; 2023 技术小馆. 保留所有权利.
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: false,
                htmlLabels: true,
                curve: 'basis'
            },
            sequence: {
                diagramMarginX: 50,
                diagramMarginY: 10,
                actorMargin: 50,
                width: 200,
                height: 100
            }
        });
    </script>
</body>
</html>
```